package com.hbm.usercenter.factory;


import com.hbm.usercenter.manager.ThreadPoolProxy;

public class ThreadFactory {
	static ThreadPoolProxy mNormalPool;
	static ThreadPoolProxy	mDownLoadPool;

	public static ThreadPoolProxy getNormalPool() {
		if (mNormalPool == null) {
			synchronized (ThreadFactory.class) {
				if (mNormalPool == null) {
					mNormalPool = new ThreadPoolProxy(5, 5, 3000);
				}
			}
		}
		return mNormalPool;
	}

	public static ThreadPoolProxy getDownLoadPool() {
		if (mDownLoadPool == null) {
			synchronized (ThreadFactory.class) {
				if (mDownLoadPool == null) {
					mDownLoadPool = new ThreadPoolProxy(3, 3, 3000);
				}
			}
		}
		return mDownLoadPool;
	}
}
